﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_city_task_fzz")]
    public partial class ZmCityTaskFzz : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(50)]
        public string Id { get; set; }
        [Column("name")]
        [StringLength(255)]
        public string Name { get; set; }
        [Column("survey_unit_id")]
        [StringLength(50)]
        public string SurveyUnitId { get; set; }
        [Column("sample_proportion")]
        public int? SampleProportion { get; set; }
        [Column("sample_area_code", TypeName = "json")]
        public string SampleAreaCode { get; set; }
        [Column("sample_area_codes_json")]
        public string SampleAreaCodesJson { get; set; }
        [Column("sample_type")]
        public int? SampleType { get; set; }
        [Column("sample_count")]
        public long? SampleCount { get; set; }
        [Required]
        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
        [Column("hc_acuracy")]
        public int? HcAcuracy { get; set; }
        [Column("hc_acuracycount")]
        public int? HcAcuracycount { get; set; }
    }
}
